package com.tecklab.demo.service;

import com.tecklab.demo.dto.DepartmentDTO;
import com.tecklab.demo.param.DepartmentAddParam;
import com.tecklab.demo.param.DepartmentModifyParam;

import java.util.List;

/**
 * 用户服务接口uuuuu
 * 继承 MyBatis-Plus 的 IService 接口
 */
public interface DepartmentService {

    int create(DepartmentAddParam addParam);

    int modify(DepartmentModifyParam addParam);

    DepartmentDTO getById(Integer id);

    DepartmentDTO getByName(String name);

    List<DepartmentDTO> getByHospitalId(Integer hospitalId);

}
